package cn.com.yusys.yusp.admin.service;

import cn.com.yusys.yusp.commons.mapper.QueryModel;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;
import java.util.Map;

@FeignClient(fallback=RoleProviderServiceHystrix.class  ,name = "${service.feignclient.name.yusp-app-oca:yusp-app-oca}", path = "/api/provider")
public interface RoleProviderService {
	@RequestMapping(value = "/findRoles", method = RequestMethod.POST)
	public List<Map<String,Object>> findRolesByOrgIds(@RequestBody QueryModel model) ;
}